﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-03-25 18:49
    /// 描 述：微信群聊实体类
    /// </summary>
    [Table("wxcorp_group_chat")]
    public class WXCorpGroupChatEntity : BaseEntity
    {
        /// <summary>
        /// 群id
        /// </summary>
        /// <returns></returns>
        public string chat_id { get; set; }
        /// <summary>
        /// 群状态客户群跟进状态0 - 跟进人正常1 - 跟进人离职2 - 离职继承中3 - 离职继承完成
        /// </summary>
        /// <returns></returns>
        public int? status { get; set; }
        /// <summary>
        /// 群名
        /// </summary>
        /// <returns></returns>
        public string name { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 群类型1永久群，2临时群
        /// </summary>
        public int type { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime starttime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime endtime { get; set; }
    }
}
